package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;
import javax.validation.constraints.*;

@Data
@ApiModel("产品分类创建参数")
public class ProductCategoryCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "分类名称")
    private String name;

    @NotNull(message = "icon参数缺失")
    @ApiModelProperty(value = "分类图标")
    private String icon;

    @NotNull(message = "sort参数缺失")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态：0-禁用，1-启用")
    private Integer status;

}
